using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("hrm_ps_absence_vacations")]
    public class PsAbsenceVacation
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Column("vacation_seq"), Display(Name = "VacationId", ResourceType = typeof(Resources.PsAbsenceVacationsResource))]
        public int VacationId { get; set; }

		[DataMember, Column("vacation_year"), Display(Name = "VacationYear", ResourceType = typeof(Resources.PsAbsenceVacationsResource))]
        public Nullable<int> VacationYear { get; set; }

		[ForeignKey("Emp")]
		[DataMember, Column("emp_seq"), Display(Name = "EmpId", ResourceType = typeof(Resources.PsAbsenceVacationsResource))]
        public Nullable<int> EmpId { get; set; }

		[DataMember, Column("vacation_add"), Display(Name = "VacationAdd", ResourceType = typeof(Resources.PsAbsenceVacationsResource))]
        public Nullable<decimal> VacationAdd { get; set; }

		[DataMember, Column("in_balance"), Display(Name = "InBalance", ResourceType = typeof(Resources.PsAbsenceVacationsResource))]
        public Nullable<decimal> InBalance { get; set; }

		[DataMember, Column("out_balance"), Display(Name = "OutBalance", ResourceType = typeof(Resources.PsAbsenceVacationsResource))]
        public Nullable<decimal> OutBalance { get; set; }

		[DataMember, Column("record_status"), Display(Name = "RecordStatus", ResourceType = typeof(Resources.PsAbsenceVacationsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Column("created_by"), Display(Name = "CreatedBy", ResourceType = typeof(Resources.PsAbsenceVacationsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Column("created_when"), Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PsAbsenceVacationsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Column("updated_by"), Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PsAbsenceVacationsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Column("updated_when"), Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PsAbsenceVacationsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual Employee Emp { get; set; }

    }
}